<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Vue示例</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/vue/3.2.40/vue.global.js"></script>
</head>

<body>
    <div id="app">

  </button>
    </div>
    <script>
        const {ref,reactive} =Vue
        const app = Vue.createApp({
            setup(props) {
                const type =ref('a')
                const obj = reactive({
                    name:'张三',
                    age:18
                })
   console.log(type);
   console.log(obj);
                return {
                    type,obj
                }
            }
        }).mount("#app");
    </script>
</body>

</html>